home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / powermgmt-base.preinst < prev    next >
Text File  |  2008-05-03  |  389b  |  24 lines

  1. #!/bin/sh -e
  2.  
  3.  
  4.  
  5. case "${1}" in
  6. (install|upgrade)
  7.     if [ -f /etc/modutils/apmd ]; then
  8.     if [ -f /etc/modutils/apm ]; then
  9.         # retire
  10.         mv -f /etc/modutils/apmd /etc/modutils/apmd.dpkg-old
  11.     else
  12.         # kidnap
  13.         mv -f /etc/modutils/apmd /etc/modutils/apm
  14.     fi
  15.     fi
  16.     ;;
  17. (abort-upgrade)
  18.     ;;
  19. (*)
  20.     echo "preinst called with unknown argument \`$1'" >&2
  21.     exit 1
  22.     ;;
  23. esac
  24.